<?php
namespace app\jobmanagement\controller;

use app\constdir\ApiConst;
use app\jobmanagement\service\Index as sIndex;
use app\lib\Alipay as LibAlipay;
use think\Cache;

class Alipay //==extends Base
{

    public function index(){
        $new = new LibAlipay();
//exit();
//        $a = md5('18626876383'.ALIPAY_CUSTOM_KEY);
//        Cache::set('18626876383',$a,3600);
//      echo  Cache::get('18626876383');
//exit();
        $a = md5('18626876383'.ALIPAY_CUSTOM_KEY);
       Cache::set('18626876383',$a,3600);
        $data['out_biz_no'] = uniqid();
        $data['trans_amount'] = 0.12;
        $data['worker_phone'] = '18626876383';
        $data['worker_name'] = '蔡先华';

        var_dump($new->transferAccountToWorker($data));
    }
}
